package com.inc.admin.domain.biz;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.inc.admin.domain.sys.BaseEntity;
import lombok.Data;

/**
 * 
 * @TableName book_history
 */
@Data
public class BookHistory  extends BaseEntity {
    /**
     * id
     */
    private Integer id;

    /**
     * 用户id
     */
    private Integer userId;

    /**
     * 书本id
     */
    private Integer bookId;

    /**
     * 数量
     */
    private Integer count;

    /**
     * 0借出1归还
     */
    private Integer state;

    /**
     * 借出时间
     */
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd")
    private Date borrowTime;

    /**
     * 归还时间
     */
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd")
    private Date backTime;

    /**
     * 借书时间
     */
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd")
    private Date continueTime;
}